package org.leviatan.definator.core.admin;

import org.leviatan.definator.core.DefinatorConfiguration;

public abstract class DefinatorConfigurationHandler {
	
	private static DefinatorConfiguration theConfig = null;
	
	
	
	
	public static void setActiveConfiguration(DefinatorConfiguration aConfig) {
		DefinatorConfigurationHandler.theConfig = aConfig;
	}
	
	public static DefinatorConfiguration getActiveConfiguration() {
		return DefinatorConfigurationHandler.theConfig;
	}
	
	public static DefinatorConfiguration factorNewConfiguration(String filePath) {
		return DefinatorConfiguration.factorNewConfiguration(filePath);
	}
	
	public static void saveActiveConfiguration() {
		DefinatorConfigurationHandler.theConfig.saveConfigurationOnFile();
	}
	
	public abstract void saveActiveConfiguration(String filePath);
	

}
